<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .big-box{
            position: relative;  /* 允许自身作为参照物 */
        }
        a {
            text-decoration: none;
        }
         .logo {
            width: 100%;
            height: 80px;
            border: solid black 3px;
        }
        .meal {
            width: 100%;
            height: 50px;
            border: black solid 1px;
            background: purple;
            margin-top: -24px
        }
        .meal a {
            color: white;
            text-decoration: none;
        }
        .meal a:hover {
            color: red;
        }
        .kuaijie1 {
            font-size: 20px;
            text-align: left;
            margin-left: 20px;
            float: left;
            margin-top: 10px;
        }
        .kuaijie2 {
            text-align: center;
            font-size: 20px;
            width: 800px;
            margin-left: 370px;
            margin-top: 10px;
        }
        .kuaijie2>a {
            color: white;
        }
        .kuaijie3>a {
            color: white;
        }
        h2 {
            font-size: 35px;
            margin-top: -70px;
            margin-left: 1250px;
        }
        .anniu {
            margin-left: 6px;
        }
        .under {
            float: left;
            background: rgb(37, 36, 36);
            width: 100%;
            height: 90px;
            margin-top: 10px;
        }

        .u1 {
            width: 250px;
            height: 40px;
            color: white;
            float: left;
        }
        .u1-1 {
            text-align: center;
            margin-top: 16px;
        }
        .u1-2 {
            text-align: center;
            margin-top: 7px;
            margin-left: -5px;
        }
        .u2 {
            width: 400px;
            height: 90px;
            color: white;
            float: left;
            margin-left: 330px;
        }
        .u2-1 {
            text-align: center;
            margin-top: 16px;
        }
        .u2-2 {
            text-align: center;
            margin-top: 7px;
        }
        .u3 {
            width: 500px;
            height: 90px;
            color: white;
            text-align: right;
            margin-left: 1165px;
        }
        .u3-1 {
            margin-top: 16px;
        }
        .u3-2 {
            margin-top: 7px;
        }
        .kuaijie3 {
            margin-left: 1400px;
            font-size: 20px;
            margin-top: -27px;
        }
        .anniu1 {
            margin-left: 5px;
        }
        .u2 a {
            color: white;
        }
    </style>
</head>
<body>
<div class="big-box">
    <div class="logo">
        <img src="/img/G6$UBA@LFWTLG9}W(493`31.png" alt=""  height="80">
        <h2>以蜗牛之名，行学习之实</h2>
    </div>
    <br>
    <div class="meal">
        <a class="kuaijie1" href="#">快捷导航</a>
        <div class="kuaijie2">
            <a class="anniu" href="#">PHP开发</a>
            <a class="anniu" href="#">Java开发</a>
            <a class="anniu" href="#">Python开发</a>
            <a class="anniu" href="#">Web前端</a>
            <a class="anniu" href="#">测试开发</a>
            <a class="anniu" href="#">数据科学</a>
            <a class="anniu" href="#">网络安全</a>
            <a class="anniu" href="#">蜗牛杂谈</a>
        </div>
        <div class="kuaijie3" id="loginmenu">
            {% if session.get('islogin') =='true' %}
                <a class="anniu1" href="/user_center">欢迎你：{{session.get('nickname')}}</a >
            {% if session.get('rolo') == 'admin' %}
                <a class="anniu1" href="/admin">系统管理</a >
            {% else %}
                <a class="anniu1" href="/user_center">用户中心</a >
            {% endif %}
            <a class="anniu1" href="/logout">注销</a >
            {% else %}
            <a class="anniu1" href="/login" style="margin-left: 10px">登录</a >
            <a class="anniu1" href="/register" style="margin-left: 10px">注册</a >
            {% endif %}
        </div>
    </div>
    <br>
    <div style="width: 100%">
        {% block content%}
        <p>111111</p>
        {% endblock %}
    </div>
    <div class="under">
        <div class="u1">
            <div class="u1-1">
                <span>版权所有&#169蜗牛笔记（V-1.0）</span>
            </div>
            <div class="u1-2">备案号：蜀ICP备15014120号</div>
        </div>
        <div class="u2">
            <div class="u2-1">友情链接</div>
            <div class="u2-2">
                <a href="#">在线课堂</a>
                <a href="#">直播课堂</a>
                <a href="#">培训中心</a>
                <a href="#">UI设计学院</a>
            </div>
        </div>
        <div class="u3">
            <div class="u3-1">联系我们</div>
            <div class="u3-2">成都&#9733孵化园&#160&#160&#160QQ/微信：15903523</div>
        </div>
    </div>
</div>
</body>
</html>
